package com.mubai.activiti.service;

import com.fasterxml.jackson.databind.node.ArrayNode;
import com.mubai.activiti.domain.ProcessVO;
import org.activiti.engine.repository.Model;
import org.springframework.stereotype.Service;

import java.io.InputStream;
import java.util.List;
import java.util.Map;

/**
 * @author baichuanping
 * @create 2018-12-12
 */
public interface ActProcessService {
	Model convertToModel(String procDefId) throws Exception;

	ArrayNode selectProcessDefinition(Map<String, String> variable);

	ArrayNode deployedProcessDefinition(Map<String, String> variable);

	InputStream resourceRead(String id, String resType) throws Exception;

	List<ProcessVO> selectProcessDefinitionList(ProcessVO processVo);

	String deployProcessDefinition(InputStream is, String fileName, String category);

	int deleteDeployment(String id);
	int deleteDeployments(String ids);
}
